﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace CdaLibrary.Client
{
    public class ComplaintClient : ClientBase<Service.IComplaintService>, Service.IComplaintService
    {
        public ComplaintClient()
        {
        }
        public ComplaintClient(string endpointConfigurationName) :
            base(endpointConfigurationName)
        {
        }

        public ComplaintClient(string endpointConfigurationName, string remoteAddress) :
            base(endpointConfigurationName, remoteAddress)
        {
        }

        public ComplaintClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
            base(endpointConfigurationName, remoteAddress)
        {
        }

        public ComplaintClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
            base(binding, remoteAddress)
        {
        }

        public bool Save(Service.Complaint complaint)
        {
            return base.Channel.Save(complaint);
        }
    }
}
